package com.wyf.cnbeta;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.view.WindowManager;



public class StartActivity extends AppCompatActivity {
    int LOAD_DISPLAY_TIME=1000;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getSupportActionBar().hide();

        getWindow().setFlags(WindowManager.LayoutParams. FLAG_FULLSCREEN ,
                WindowManager.LayoutParams. FLAG_FULLSCREEN);
        setContentView(R.layout.activity_start);





        new Handler().postDelayed(new Runnable() {
           public void run() {
                           /* Create an Intent that will start the Main WordPress Activity. */
                           Intent mainIntent = new Intent(StartActivity.this, MainActivity.class);
               StartActivity.this.startActivity(mainIntent);
               StartActivity.this.finish();
                  }
               }, LOAD_DISPLAY_TIME); //1500 for release

          }



    }
